package com.ddone.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author ddone
 * @date 2024/3/25-08:49
 */
@Component
// 和Application 同级别的字包都被扫描了
@Data
public class DataSourceProperties {

    @Value("${spring.datasource.driverClassName}")
    private String driverClassName;


    @Value("${spring.datasource.url}")
    private String url;


    @Value("${spring.datasource.username}")
    private String username;


    @Value("${spring.datasource.password}")
    private String password;

}
